export default {
    props: {
        tableName: {
            type: String,
            default: "PROD_INST_ATTR"
        },
        // type: {
        //     type: String,
        //     default: "text"
        // },

        colType: {
            type: String,
            default: "T"
        },

        colId: {
            type: String,
            default: "142002259"
        },
        name: {
            type: String,
            default: "2075-142002259"
        },
        id: {
            type: String,
            default: "2075-142002259"
        },
        fieldId: {
            type: String,
            default: "REAL_NAME_RESOURT"
        },
        initValue: {
            type: String,
            default: ""
        },

        valueField: {
            type: String,
            default: "ATTR_VAL_ID"
        },
        textField: {
            type: String,
            default: "ATTR_VAL_NAME"
        },

        vtype: {
            type: String,
            default: "empty"
        },

        attrRoleCd: {
            type: String,
            default: '200'
        },

        Eparams: {
            type: Object,
            default: () => {
                return {
                    SQL_CODE: 'findAttrOptionValByGrep',
                    PARAMS: '100011855,80034,80034'
                }
            }
        }
    },
    methods: {
        getPPMData() {
            return {
                tableName: this.tableName,
                colType: this.colType,
                colId: this.colId,
                name: this.name,
                id: this.id,
                fieldId: this.fieldId,
                initValue: this.initValue,
                valueField: this.valueField,
                textField: this.textField,
                vtype: this.vtype,
                attrRoleCd: this.attrRoleCd,
                Eparams: this.Eparams,
            }
        }
    },
};